var app = angular.module('myApp',['ui.router','angularCSS','xiangcezhan','xiangcemai','xiangceku','xiangceme','xiangcepin']);

// 配置路由
// 第一步,注入路由依赖
app.config(['$stateProvider','$urlRouterProvider',function ($stateProvider,$urlRouterProvider) {
	// 默认状态
	$urlRouterProvider.otherwise('/');
	$stateProvider.state('/',{
		url:'/',
		templateUrl:'../html/xiangcezhan/xiangcezhan.html',
		controller:'zhanCtrl',
		css:'../css/xiangcezhan.css'
	})
	.state('/mai',{
		url:'/mai',
		templateUrl:'../html/xiangcemai/xiangcemai.html',
		controller:'maiCtrl'
	})
	.state('/ku',{
		url:'/ku',
		templateUrl:'../html/xiangceku/xiangceku.html',
		controller:'kuCtrl'
	})
	.state('/me',{
		url:'/me',
		templateUrl:'../html/xiangceme/xiangceme.html',
		controller:'meCtrl'
	})
	.state('/pin',{
		url:'/pin',
		templateUrl:'../html/xiangcepin/xiangcepin.html',
		controller:'pinCtrl'
	})
}])


app.controller('Ctrl',function ($scope,$rootScope) {
	$rootScope.isShow = true;
})

